<{include file="common/header" /}>
<script src="__JS__/pintuer.js"></script>
</head>
<body>
<div class="panel admin-panel margin-top">
    <div class="panel-head" id="add"><strong><span class="icon-pencil-square-o"></span>修改内容</strong></div>
    <div class="body-content">
        <form method="post" class="form-x" action="<{:url('goodsPropEdit')}>">
            <input type="hidden" name="pid" value="<{$pid}>">
            <div class="form-group">
                <div class="label">
                    <label>属性名称：</label>
                </div>
                <div class="field">
                    <input type="text" class="input w50" name="pname" value="<{$pname}>" />
                    <div class="tips"></div>
                </div>
            </div>
            <div class="form-group">
                <div class="label">
                    <label>属性值：</label>
                </div>
                <div class="field" style="padding-top:8px;">
                    <{foreach $prop_value as $v}>
                    <{$v['prop_value']}>:<input type="checkbox" name="pvalues[]" id="" value="<{$v['vid']}>" <{if in_array($v['vid'],$pvalues)}>checked<{/if}>>
                    <{/foreach}>
                    <div class="tips"></div>
                </div>
            </div>
            <div class="form-group">
                <div class="label">
                    <label>新加属性值：</label>
                </div>
                <div class="field">
                    <input type="text" class="input w50" name="prop_value" />
                    <div class="tips"></div>
                </div>
            </div>

            <div class="form-group">
                <div class="label">
                    <label>其他属性：</label>
                </div>
                <div class="field" style="padding-top:8px;">
                    有效 <input   type="radio"  name="xiaoguo" value="1" <{if '1'==$xiaoguo}>checked<{/if}>/>
                    无效 <input   type="radio"  name="xiaoguo" value="0"<{if '0'==$xiaoguo}>checked<{/if}>/>
                </div>
            </div>
            <div class="form-group">
                <div class="label">
                    <label>排序：</label>
                </div>
                <div class="field">
                    <input type="text" class="input w50" name="sort_order" value="<{$sort_order}>"  data-validate="number:排序必须为数字" />
                    <div class="tips"></div>
                </div>
            </div>
            <div class="form-group">
                <div class="label">
                    <label></label>
                </div>
                <div class="field">
                    <button class="button bg-main icon-check-square-o" type="submit"> 提交</button>
                </div>
            </div>
        </form>
    </div>
</div>
</body>
</html>